<?php echo $form->renderGlobalErrors() ?>
<?php  if ($form->isCSRFProtected()) : ?> 
	<?php echo $form['_csrf_token']; ?> 
<?php endif; ?>							
<?php $displayClientData = 'block';?>
<div id="errorDisplayHaut" class="errorDisplay">&nbsp;</div>
<div id="demandeurFieldset">
	<fieldset>
		<legend><?php echo __('The Applicant')?></legend>
			<div>
				<?php $persObjDef=new objectDef('personne')?>
				<p class="edsl_form">
					<label><?php echo $persObjDef->renderLabel('nni')?></label>
					<span><?php echo $demandeur->code; ?></span>
				</p>
			</div>
                <div>
                <p class="edsl_form">
                	<label><?php echo $persObjDef->renderLabel('nom')?></label>
	                <span><?php echo $demandeur->nom; ?></span>
                </p>
                </div>
                <div>
                <p class="edsl_form">
					<label><?php echo $persObjDef->renderLabel('prenom')?></label>
					<span><?php echo $demandeur->prenom; ?></span>
				</p>
                </div>
                <div>
                <p class="edsl_form">
                	<label><?php echo $persObjDef->renderLabel('email')?></label>
                	<span><?php echo $demandeur->email; ?></span>
				</p>
                </div>
			<a id="addNotif"  onclick="showForm('participant_notifier', 'participants_notifier', 'new');" href="#">
			<img title="<?php echo __('Clic here to add other people');?>" src="/images/icons/16/add_people.png"/></a> <?php echo __('Add other people');?>
	</fieldset>
</div>
<div id ="list_participants_notifier" class="" >
</div>
<div  id="clientFieldset" style="display:<?php echo $displayClientData?>;">
	<fieldset>
		<legend><?php echo __('The Client')?></legend>
			<?php echo $form['client_id']->renderRow() ?>
			<!-- 
				<div id="messageNNIInvalide"></div>
					<?php // echo $form['nomClient']->renderRow() ?>
					<?php // echo $form['mailClient']->renderRow() ?>
					<?php // echo $form['telClient']->renderRow() ?>
				</div>
			 -->
	</fieldset>
</div>
<div style="clear: both;">
	<fieldset>
		<legend><?php echo __('Client Localisation')?></legend>
		<div id="localisationClient">
			<?php echo $objDef->renderAttributeWidget($form, 'regionClient');?>
			<?php echo $objDef->renderAttributeWidget($form, 'departementClient');?>
		</div>
	</fieldset>
</div>
<script type="text/javascript">
$(document).ready(function(){    
	renderList("participant_notifier", "participants_notifier" ,0);
	setLocalisationCandidates();
});
</script>
